import request from '@/utils/request';

export async function getMaterialInfoByPage (params: any) {
    return request('/api/basicData/getMaterialInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addMaterialInfo (params: any) {
    return request('/api/basicData/addMaterialInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateMaterialInfo (params: any) {
    return request('/api/basicData/updateMaterialInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delMaterialInfo (params: any) {
    return request('/api/basicData/delMaterialInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportMaterialInfo(params: any) {
    return request('/api/basicData/exportMaterialInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getMaterialInfoByPage, addMaterialInfo, updateMaterialInfo, delMaterialInfo, exportMaterialInfo }
